<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateMembersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        Schema::create('members', function (Blueprint $table) {
            $table->increments('id');
            $table->string('nickname')->comment("昵称");
            $table->string('uid')->comment("app用户ID");
            $table->string('appId')->comment("appId");
            $table->string('key')->comment("key");
            $table->string('email')->comment("支付宝账号");
            $table->float('money')->comment("资金余额");
            $table->string('header_url')->comment("头像");
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
        Schema::table('members', function (Blueprint $table) {
            $table->dropIfExists();
        });
    }
}
